/*
* @Author: qingsong-Liu
* @Date:   2019-10-09 09:54:10
* @Last Modified by:   qingsong-Liu
* @Last Modified time: 2019-10-09 10:08:15
*/
import React from 'react';

class PageTitle extends React.Component{
    constructor(props){
        super(props);
    }
    componentWillMount(){
        document.title = this.props.title + '- MMALL';
    }
    render(){
        return (
                <div className="row">
                    <div className="col-md-12">
                        <h1 className="page-header">{this.props.title}</h1>
                        {this.props.children}
                    </div>
                </div>
        );
    }
}

export default PageTitle;